﻿<%@ Page Title=string.Empty Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectThongTinCongTy
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	Quản lý thông tin công ty
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
<% if (Model.ThongTinCongTyModel.GetModel.LstObjModel.Count == 0)
   { %>
	<script src="../../Scripts/fckeditor/fckeditor.js" type="text/javascript"></script>
	<script type="text/javascript">
		window.onload = function () {
			var objFckEditor = new FCKeditor('ThongTinCongTy_GioiThieu');
			objFckEditor.BasePath = '<%= ResolveUrl("~/Scripts/fckeditor/")%>';
			objFckEditor.Height = 480;
			objFckEditor.Width = 800;
			objFckEditor.ToolbarSet = 'TemplateWeb.MyToolbar';
			objFckEditor.ReplaceTextarea();
        }
	</script>
<% } %>
	<script type="text/javascript">
		<% if (Model.ThongTinCongTyModel.InfoText != null && Model.ThongTinCongTyModel.InfoText != string.Empty){ %>
			alert('<%= Model.ThongTinCongTyModel.InfoText %>');
		<% } %>
	</script>
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListThongTinCongTy", Model); %>
	</div>
    <% if (Model.ThongTinCongTyModel.GetModel.LstObjModel.Count == 0)
       { %>
	<% using (Html.BeginForm("InsertThongTinCongTy", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return ValidateThongTinCongTy();" }))
    { %>
		<div style="padding: 10px; padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">Add New ThongTinCongTy</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">NamPhatTrien: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinCongTy_NamPhatTrien", string.Empty, new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">TenCongTy: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinCongTy_TenCongTy", string.Empty, new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DiaChi: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinCongTy_DiaChi", string.Empty, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DienThoai: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinCongTy_DienThoai", string.Empty, new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">EmailCongTy: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("ThongTinCongTy_EmailCongTy", string.Empty, new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">MatKhauEmailCongTy: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.Password("ThongTinCongTy_MatKhauEmailCongTy", string.Empty, new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
                    <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Xac nhan mat khau: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.Password("ThongTinCongTy_XacNhanMatKhauEmailCongTy", string.Empty, new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">GioiThieu: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("ThongTinCongTy_GioiThieu")%>
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<p>
									<input type="submit" value="Add New" style="cursor: pointer;" />
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
    <% } %>
</asp:Content>
